package com.xyp.mesadmin.md.unit.mapper;



import com.xyp.mescommon.entity.md.MdUnitMeasure;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MdUnitMeasureMapper {
    //模糊查询
    List<MdUnitMeasure> selectMdUnitMeasure (String name);
    //根据id查询
    MdUnitMeasure selectMdUnitMeasureById (Integer id);
    //删除
    int deleteUnit (Integer id);
    //批量删除
    int deleteUnitBatch(@Param("ids") List<Integer> ids);
    //添加
    int addUnit (MdUnitMeasure mdUnitMeasure);
    //修改
    int updateUnit (MdUnitMeasure mdUnitMeasure);
    //批量插入
    void insertBatch (List<MdUnitMeasure> list);
}
